import hRequest from "@service/index";
import type { Trestem } from "@/models/restem";

export async function get_college() {
    const res = await hRequest.get<Trestem & { data: Array<string> }>({ url: "/college/getCollege" });
    return res;
}

export async function get_major(params?: any) {
    const res = await hRequest.get<Trestem & { data: Array<string> }>({ url: "/college/getMajor", params });
    return res;
}